﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using JKF.DataModule.SqlServerDAL;
namespace JKF.BusinessLayer.BLL
{
    /// <summary>
    /// 业务逻辑类bllDIC_GROUP 的摘要说明。
    /// </summary>
    public partial class bllDIC_GROUP
    {
        /// <summary>
        /// 获取分组列表
        /// </summary>
        /// <param name="NAME">分组名称</param>
        /// <param name="pageCurrent">当前页码</param>
        /// <param name="pageSize">一页显示多少</param>
        /// <param name="pageCount">总页数</param>
        /// <param name="rowCount">总记录数</param>
        /// <returns>返回DataTable数据</returns>
        public  DataTable GetDic_GroupsBLL(string NAME, int pageCurrent, int pageSize, ref int pageCount, ref int rowCount)
        {
            return dalDIC_GROUP.GetDic_GroupsDAL(NAME,pageCurrent,pageSize,ref pageCount,ref rowCount);
        }

         /// <summary>
        /// 判断是否存在此名称,true表示存在
        /// </summary>
        /// <param name="shop_name">店面名称</param>
        /// <returns></returns>
        public  bool ExistsGroupNameBLL(string group_name)
        {
            return dalDIC_GROUP.ExistsGroupNameDAL(group_name);
        }
         /// <summary>
        /// 事务删除分组
        /// </summary>
        /// <param name="group_key">分组ID</param>
        /// <returns></returns>
        public  string TransactionSQLDeleteBLL(Guid group_key)
        {
            return dalDIC_GROUP.TransactionSQLDeleteDAL(group_key);
        }
    }
}
